<template>
  <div></div>
</template>

<script lang="ts">
import { notification } from "ant-design-vue";
import { defineComponent } from "vue";

export default defineComponent({
  setup() {
    const openNotification = () => {
      notification.open({
        message: "登录提示",
        description: "您需要登录才能访问该页面。",
        onClick: () => {
          console.log("Notification Clicked!");
        },
      });
    };

    return {
      openNotification,
    };
  },
});
</script>
